package com.ll.notice.Utils;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

public class PropertiesUtils {

    public static Properties loadProperties(String pathName){
        InputStream input = null;
        try
        {
            input = Class.forName(PropertiesUtils.class.getName()).getResourceAsStream(pathName);
        } catch (ClassNotFoundException e)
        {
            e.printStackTrace();
        }
        Properties properties = new Properties();
        try {
            properties.load(input);
        } catch (IOException ioException) {
            ioException.printStackTrace();
        }
        return properties;
    }
}
